Google interview question

problem that involved matrix manipulation