Hackerrank Simple Array Sum Python Program For Palindrome