[Stack] 2D maximal largest rectangle problem.
[List] Reverse nodes in K groups.
[Permutation] next_permutation implementation.