Intel Corporation interview question

How XOR works?