Unisys Interview Question

How to find the longest word in a string