XOR of all the elements in the given range [L, R]
Given a range [L, R], the task is to find the XOR of all the integers in the given range i.e. (L) ^ (L + 1) ^ (L + 2) ^ ... ^ (R)Examples: Input: L = 1, R = 4 Output: 4 1 ^ 2 ^ 3 ^ 4 = 4Input: L = 3, R = 9 Output: 2 A simple solution is to find XOR of all the numbers iteratively from L to R. This wi