Queries to update each element in subarray to Bitwise XOR with a given value
Given an array arr[], and queries Q[][] of the form (l, r, val), the task for each query is to update all the elements in the indices [l - 1, r - 1] to Bitwise XOR with val. Print the final array obtained after completing all queries.Examples: Input: arr[] = {2, 3, 6, 5, 4}, Q[][] = {{1, 3, 2}, {2,