Question d’entretien chez Meta

Writing a function to convert an input string into integer.