Pregunta de entrevista de Rakuten

Find the overlapping area between two rectangles.