Jeffrey Jiang's submission of Matrix | CodeChef