Question d’entretien chez Microsoft

Write a method to parse an integer from a string.