Output for palindrome code

All cases for palindrome are covered in here, 4 total cases
- Palindrome or not, and odd or even length