HackerEarth Danny ! problem solution - TheCScience