Zazzle interview question

Question on matrix manipulation