HackerEarth Raj & his Slippers problem solution - TheCScience