بيان المشكلة
Write a C program to check if an array is a palindrome. An array is a palindrome if it reads the same forward and backward. Output "YES" if it is a palindrome, otherwise "NO".
Example 1
Input:
5 1 2 3 2 1
Output:
YES
Example 2
Input:
4 1 2 3 4
Output:
NO