Range Xor Query

AtCoder - abc185_f