Pregunta de entrevista de GE HealthCare

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