Cognizant Interview Question

reverse a string python vs c