Karthik's submission of Query over Matrix | CodeChef