you give array num consist nonnegative integer you give query array queriesi xi miThe answer ith query maximum bitwise XOR value xi element num exceed mi in word answer maxnumsj XOR xi j numsj mi if element num large mi answer 1return integer array answer answerlength querieslength answeri answer ith query Example 1input num 01234 query 311356output 337explanation1 0 1 integer great 1 0 xor 3 3 1 xor 3 2 the large 32 1 xor 2 33 5 XOR 2 7example 2input num 524663 query 1248163output 1515 Constraints1 numslength querieslength 105queriesilength 20 numsj xi mi 109