Cppreference Next Permutation Geeksforgeeks Practice Problems