solution for scrabble exercise.