How to solve this problem ?
https://www.hackerearth.com/problem/algorithm/xoring-ranges-1-4a2b7724/description/
Atcoder ABC #354 Solution Discussion