Gray Code, Remove Element, Valid Palindrome