HackerEarth Sharpen the pencils problem solution - TheCScience