Microsoft interview question

String to float