Pergunta de entrevista da empresa GE HealthCare

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