Outputs a number that represents the position of a given word in an alphabetical list of all possible permutations of that word given its letters.