R&G US Interview Question

How to convert character to numeric.