XOR Partition

Neo has a hidden array A of n integers where 0 ≤ Ai ≤ 109 is satisfied for each i from 1 to n . You can ask queries of the following 2 types


This is a companion discussion topic for the original entry at https://toph.co/p/orxor