Complete the functions xorQueries which takes in an integer array and two integers and , and processes queries, returning the answers to all type- queries as an array. You need to take the query information from the standard input, as described in the input format section below.
The first line contains three space-separated integers , and .
The second line contains space-separated integers .
The following lines describe the queries. The line describes the query in the format described in the problem statement, i.e., either or .
For ~24% of the total score,
For each type- query, print the answer for that query in a single line.
Sample Input 0
8 4 25 9 9 2 4 4 5 41 4 21 4 31 8 72 3 8
Sample Output 0
The array is intially
but after the first three queries, it becomes
In the fourth query, we have and . Note also that .