Add solution to the exercise 'Maximising XOR' problem