you give array arr positive integer you give array query queriesi lefti rightiFor query compute XOR element lefti righti arrlefti XOR arrlefti 1 XOR XOR arrrighti Return array answer answeri answer ith query Example 1input arr 1348 query 01120333output 27148 Explanation the binary representation element array are1 0001 3 0011 4 0100 8 1000 the XOR value query are01 1 xor 3 2 12 3 xor 4 7 03 1 xor 3 xor 4 xor 8 14 33 8example 2Input arr 48210 query 23130003output 8044 Constraints1 arrlength querieslength 3 1041 arri 109queriesilength 20 lefti righti arrlength