Gurpreet Singh's submission of Be Greedy With Grid | CodeChef