Arrays palidrome


testcase 1 wrong ans

For
5
1
2
3
2
1
Your code is giving truetrue,instead of true
There are many glitches in the code. Also this question is meant to be solved recursively. Try to come up with recursive approach

Thanks I’ve solved it