IBM interview question

How to turn a string into an integer