working version of the lowercase challenge in C