Karthik's submission of OR Matrix | CodeChef