HackerRank https://www.hackerrank.com/challenges/maximizing-xor [O(n) Solution]