HackerEarth Arjit and Printing Press problem solution - TheCScience