Pregunta de entrevista de The Blackstone Group

implement the Integer.parseInt method from scratch. given a string and return an integer.