HackerEarth A bitwise pair problem solution - TheCScience