Sponsored
Use these hints if you're stuck. Try solving on your own first.
To arrive at a small xor, try to turn off some bits from num1
If there are still left bits to set, try to set them from the least significant bit
Solve with full IDE support and test cases