Sayed Atif Ali's submission of Counting Matrices | CodeChef