HackerEarth Architect's Dilemma..! problem solution - TheCScience