PLUS AND XOR Codeforces

https://codeforces.com/problemset/problem/76/D
How to solve this question?