2001B | Generate Permutation | Codeforces Round 967 (Div. 2) | Implementation | Codeatic