I have seen many problems (involving queries) in which we are given numbers for each query and we need to perform XOR of the given numbers with the result of previous query to obtain the real values to perform next query.
Similarly, I seem many problems like.
Why this is done?
Why we are not given the original numbers simply?
Or do they involve some trick in solving?