Abhishek Jain's submission of Grid | CodeChef