Pergunta de entrevista da empresa Avaya

get area of overlapping part of two rectangles