Lexicographic Rank Of A String Using Stl - The STL provides std::next_permutation, which returns the next permuta...