Build a class over a dictionary that, for any word, returns its highest-scoring anagram — where the score adds up the distances between neighbouring letters.
Build a class over a dictionary that, for any word, returns its highest-scoring anagram — where the score adds up the distances between neighbouring letters.
Opens with the full question.