Manan Gupta's submission of Doofish Matrix | CodeChef