Infosys interview question

Special set program and special palindrome