Goldman Sachs interview question

Implement optimized matrix multiplication.