Rishabh Singhal's submission of Matrix | CodeChef