How to solve this problem ?
https://www.hackerearth.com/problem/algorithm/xoring-ranges-1-4a2b7724/description/
Codeforces Round 945 Solution Discussion (with myself)
Atcoder ABC #354 Solution Discussion