Pregunta de entrevista de Amdocs

He asked me to write a code to convert a string to float integer.