Goldman Sachs Interview Question

Some basic algebra/geometry and data structures