Cognizant interview question

Coding questions Sum of numbers from string