Amadeus Interview Question

reverse string using c