Find the rank of the word WORD in the dictionary of words formed by the letters of the word WORD