Cognizant Interview Question

write string reversal program