Dassault Systèmes Interview Question

Write a java function to Get the sum of all the numbers present in the string