Intel Corporation Interview Question

How XOR works?