HackerEarth A XOR value problem solution - TheCScience