Problem 4
Write a script to read the number (input argument, less than 999,999,999) into words, e.g. 452 should be read as "four hundred and fifty two".
Requirement:
· Do not print hyphen ' - ',
· Write " one hundred " instead of " a hundred ",
· Add " and " after every hundred unit, even when it is zero, but unless it is followed by two zeros
Examples:
# example 1
Input: 200
Output: two hundred
# example 2
Input: 221
Output: two hundred and twenty one
# example 3
Input: 1002
Output: one thousand and two