Microsoft interview question

Detect Overlapping objects given their bounding boxes