You are given an array of N positive integers and Q queries. In each query, you are given two integers l and r.
For each query, find the length of the longest subarray such that the bitwise AND of the subarray is 2k where l≤k≤r and if no subarray exists, then the answer will be 0.
Input format
Output format
For each test case, Q lines must be printed and the ith line should contain the output for the ith query.
Constraints
1≤T≤20
1≤N,Q≤5∗105
1≤Ai≤1018
0≤l≤r≤60