Enter array of num: Check if the first and last elements are equal
Check if the first and last elements are equal of a given array of integers length 3.