
Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try to build the answer bit by bit from the most significant bit to the least significant.
Use the Trie Data Structure to decide for each bit if it exists in the final answer.