IBM Interview Question

How to turn a string into an integer