WITHIN interview question

They had me whiteboard a SQL query as well as an array manipulation question.