Goldman Sachs Interview Question

A very straight forward coding question and some linear algebra questions.