Meta Interview Question

given a matrix return a submarie