Pergunta de entrevista da empresa The Blackstone Group

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