Zhang Yide's submission of Counting Matrices | CodeChef