Karthik's submission of Rectangular Queries | CodeChef