R&G US interview question

How to convert character to numeric.