Zazzle Interview Question

Question on matrix manipulation