GE HealthCare interview question

given string s. we need to return that input as an integer