Java Reverse Array Program In Python For Palindrome