takeUforward
Lexicographic Rank of a String - Tutorial