Is Palindrome? 1

https://ide.codingblocks.com/s/112057 code is failed in testcase1

Hello @Ajitverma1503,

Your code is giving a wrong answer for an even length palindrome.
Example:
4
1
2
2
1
Reason:
if(s==e){
return true;
}
Do, you think that it would work for even no. of elements.

Hope, this would help.
Give a like, if you are satisfied.