Cognizant Interview Question

write a code to reversse a string