Bitwise XOR of All Pairings | Leetcode 2425