Given an array arr, count how many times the i
th
element from the front equals the i
th
element from the back. If the array length is odd, do not count the center element.