An array is Mountainous if it is strictly increasing, then strictly decreasing. Note that Mountainous arrays must therefore be of length three or greater.
A Subarray is defined as an array that can be attained by deleting some prefix and suffix (possibly empty) from the original array.
An array or subarray is a Palindrome if it is the same sequence forwards and backwards.
Given an array of integers, compute the length of the longest Subarray that is both Mountainous and a Palindrome.