HackerEarth solutions