How to identify palindrome in the middle of an array file and print out just the palindrome in a new file

I am trying to create code that will read the file and identify the palindrome that is in the middle of the array of integers (i.e. 5 8 6 11 22 33 44 33 22 11 6 7). I am stuck on how to go about it and the research I’ve been doing online has […]