Coforge Interview Question

reverse of a string.