Given an array A, of 'n' elements. Your task is to complete the function minDist which returns an integer denoting the minimum distance between two integers x and y in the array. If no such distance is possible then return -1.
The first line of input contains an integer T, denoting the no of test cases. Then T test cases follow. Each test case consists of three lines. The first line of each test case contains an integer 'n' denoting size array. Then in the next line are 'n' space separated values of the array A. The last line of each test case contains two integers x and y.
For each test case in a new line print the required answer .
1 <=n<= 100
1 <=A, x, y<= 100
Example(To be used only for expected output):
86 39 90 67 84 66 62