- Link to question : https://www.hackerrank.com/challenges/maximizing-xor/problem
- Link to Logic : https://threads-iiith.quora.com/Tutorial-on-Trie-and-example-problems
- Link to code : https://repl.it/@NikhilAgrawal/TrustingShorttermBarebirdbat

I am trying to implement above logic but made a mistake somewhere and could not identify it. Please help.

PS: I know that question can be solved using brute force too.

TIA