Pergunta de entrevista da empresa Huawei Technologies

A coordinate system with rectangles on different depth. The goal is too find/approximate the rectangles that are completely covered by other rectangles.