pramod's submission of Grid Tour | CodeChef