Deliverr interview question

A coding challenge on a matrix manipulation.