Garmin interview question

Reverse a string in c