Goldman Sachs interview question

Some basic algebra/geometry and data structures