Given an array, the task is to find the difference between highest occurrence and lowest occurrence of any number in an array.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of two lines. First line of each test case contains a integer N and the second line contains N space separated array elements.
Output: For each test case, print the difference in new line.