shantam garg's submission of Grid | CodeChef