Amazon interview question

To write a no. Decimal in a string