Meta Interview Question

Write a function to convert a string number into an integer . eg: "one thousand four hundred and thirteen" -> 1413