Pergunta de entrevista da empresa BlackRock

Reverse a list and remove all the duplicates from the given list