
You are given an array nums consisting of non-negative integers. You are also given a queries array, where queries[i] = [x _i , m _i ] .
The answer to the i ^th query is the maximum bitwise XOR value of x _i and any element of nums that does not exceed m _i . In other words, the answer is max(nums[j] XOR x _i ) for all j such that nums[j] <= m _i . If all elements in nums are larger than m _i , then the answer is -1 .
Return an integer array answer where answer.length == queries.length and answer[i] is the answer to the i ^th query.
1 <= nums.length, queries.length <= 10 ^5queries[i].length == 20 <= nums[j], x _i , m _i <= 10 ^9