Initial solution to longest word in a sentence problem.