Write a function named isPalindrome
that takes an array argument named arr
and returns true
if it is a palindrome, and false
otherwise. An array is a palindrome if the elements of the array in reversed order are the same as the original array.