## Calculate rank of given string among all its lexicographically sorted permutations

Given a string, calculate its rank among all its lexicographically sorted permutations. For example, consider below lexicographically sorted permutations

Read More Calculate rank of given string among all its lexicographically sorted permutations