HackerEarth probs