Pregunta de entrevista de Tata Consultancy Services (North America)

Coding reverse list and anagram question