Anshal Dwivedi's submission of Counting Matrices | CodeChef