Rakuten interview question

Find the overlapping area between two rectangles.