commit NextPermutation and ValidPalindrome