HackerEarth Rasta and Kheshtak problem solution - TheCScience