Now finds the optimal word possible from a given array of letters.