Tripadvisor Interview Question

Write a program that receive a text, parse it according to some rules and return the most repeated words. The program has to run and you can choose the programming language.