solution to the longest word in codeeval https://www.codeeval.com/open_challenges/111/