Wentao Wang's submission of Matrix | CodeChef