Microsoft Interview Question

How do you check if two rectangles are overlapping?