Domanda di colloquio di Google

Implement the overlap area of two rectangles.