Bane wants to destroy the Gotham city by planting a security code bomb at Gotham tower. Bane is overconfident about his smartness and under estimated the Batman. He challenged Batman to defuse the bomb and provided him some numbers (all distinct) with a hint that the security code of the bomb is the product of the numbers that lie between Xth smallest number and Yth smallest number in the given sequence (Xth smallest number and Yth smallest number are inclusive).
Find the Security Code ‘n’ of the bomb in order to save the city.
Input :
The first line contain ‘p’ the number of test cases.
The first line of each test case contains 'n' i.e. the total numbers given by the Bane.
The second line of each test case contains n distinct number. (separated by space)
The third line of each test case contains 'X' and 'Y'. (separated by space)
Sample Input
2
6
1 4 7 6 9 3
5 6
3
9 2 5
3 3
Sample Output
378
9
(Explanation: In 1st test case 5th smallest is '7' and 6th smallest is '9', hence the product will be the numbers between them in the sequence including them i.e. 7x6x9=378 . In 2nd test case both X and Y are same and 3rd smallest is '9', hence product will be '9' only )