Meta Interview Question

Writing a function to convert an input string into integer.