Meta Interview Question

Valid Palindrome 2, Next Permutation