Wrote all code including error handling, is Odd Function, and output string