Tanmay Agrawal's submission of Matrix | CodeChef