Pregunta de entrevista de Meta

Given a string that represents and integer, convert it to an integer.