Avaya Interview Question

get area of overlapping part of two rectangles