HackerEarth Subxor problem solution - TheCScience