Given array A of integers, the task is to complete the function findMaxDiff which finds the maximum absolute difference between nearest left and right smaller element of every element in array.If the element is the leftmost element, nearest smaller element on left side is considered as 0. Similarly if the element is the rightmost elements, smaller element on right side is considered as 0.
The first line of input contains an integer T denoting the no of test cases. Then T test cases follow .Each test case contains an integer N denoting the size of the array A. In the next line are N space separated values of the array A.
For each test case output will be in a new line denoting the the maximum absolute difference between nearest left and right smaller element of every element in array.
Example(To be used only for expected output) :
2 1 8
2 4 8 7 7 9 3 Output