Ayan Ghatak's submission of Counting Matrices | CodeChef