Solving A XOR operation - Hackerearth

Nikhil

2021/02/08

For context, link to the problem being discussed.

Solution that passes

Why is it so?

Corner case

1
6
17 3 2 4 12 24