Ranks specific word in comparison to permutation using the same letters