Permutations: Finding the Rank of a Word | Pintarly