Write a recursive function that takes as a parameter a nonnegative integer and generates a pattern of stars.
If the user enters a negative number or a nondigit number, throw and handle an appropriate exception and prompt the user to enter another nonnegative number.
***Sample output***
Enter nonnegative integer: 4
You entered 4. Your pattern is
****
***
**
*
*
**
***