Meta interview question

given a matrix return a submarie