Pregunta de entrevista de Capgemini

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