Kelly Interview Question

how to convert string to a number