WeWork Interview Question

computational geometry question