Pergunta de entrevista da empresa Rakuten

The online coding test was about find the intersection of two rectangles.