Nuvalence interview question

Take home test was about rectangle intersection, adjacency, and containment