takeUforward
next_permutation in C++ STL - Tutorial