Find the longest string that is a prefix of every word in the array. Three approaches, same problem — switch between them and watch how each one converges on the answer.