how to reverse a string in c without using strrev