Cppreference Next Permutation Geeksforgeeks Practice C