HackerEarth Meeting the origin problem solution - TheCScience