HackerEarth Divide the digits problem solution - TheCScience