Nuvalence interview question

Write an api for overlapping rectangles.