Finding the longest continuous subarray in a normal array in O(n^2).