Dassault Systèmes Interview Question

1. Sum of digits program 2. Substring program