Dassault Systèmes interview question

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