Kelly interview question

how to convert string to a number