Example of reduce function to find longest line in file