You are given an array Arri of size N 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 Arr[1,2.....i....j.....x...y....N] and you choose subarrays [i....j] and [x....y] to form the super array, then the super array will be [i....j,x...y] where (1≤i≤j<x≤y≤N).
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
1≤T≤20
1≤N,Arri≤100000
For the given array if we choose a sub array from index [2...5] and index [8...10] to make the super array, then we get the maximum size i.e 7.