Implement the tolower and toupper functions

Implement the tolower and toupper functions as efficiently as you can..
How do you handle errors if you had to