Create a function generateString(char, val) that returns a string with val number of char characters concatenated together. For example generateString('a', 7) will return aaaaaaa.
Write a program to convert a number entered by the user into its corresponding number in words. For example, if the number is 876, then the output should be ‘Eight Seven Six’