Domanda di colloquio di Microsoft

How do you check if two rectangles are overlapping?