Capgemini Interview Question

write a program in any language to reverse a string or a list.