結果 : check if array is palindrome python