Capgemini Engineering Interview Question

reverse a string