You are given an array of size containing distinct integers. You have to choose two non-overlapping subarrays and join them to make a super array such that all elements in the super array are strictly in increasing order. Find the maximum size of the super array.
For example, if the given array is and you choose subarrays and to form the super array, then the super array will be where ().
Notes
Input format
Output format
Find the maximum size of the super array. Print the answer to each test case in a separate line.
Constraints
For the given array if we choose a sub array from index and index to make the super array, then we get the maximum size i.e 7.