Algorithm to find longest string in array of string.