Xor sequence from hackerrank

Please Format your code.
Left and right are up to 10^{15}. So you will get segfault.

1 Like