Cppreference Next Permutation Interviewbit Sql