Bosch Interview Question

Write a program using Java where I have to provide a dynamic number and iterate until one less than the dynamic number. Then, I have to check whether the number is even or odd. If the number is odd, it should print the spelling of the number (e.g., for 1, it should print "one"). If the number is even, it should print the number as it is