Tanmay Datta's submission of Counting Matrices | CodeChef