HackerEarth Bob's confusion problem solution - TheCScience