Problem 3 (Find the Longest Word)