Algoritmo de troca com XOR

Troque dois valores inteiros usando operações XOR e retorne-os na ordem invertida como um int[].

Exemplos

Program.xor(10, 41)     ➞ new int[] { 41, 10 }
Program.xor(69, 420)    ➞ new int[] { 420, 69 }
Program.xor(12345, 890412) ➞ new int[] { 890412, 12345 }

Observações

Use operações XOR em vez de uma variável temporária ou de retornar diretamente new int[] { b, a }.