Question d’entretien chez Rakuten

Find the overlapping area between two rectangles.