Gett Interview Question

Write a function who get a string "123" and return an integer 123