HACKEREATRH Xor Problem

Hello,
Can anybody help me to understand how can I solve this, As Editorial is not given on the site?
Adhoc approch not working.

Problem statement: XOR operation | Practice Problems

Thanks in advance.