Finding the Longest word made of other words in the given input file