Intersecting Rectangles

Kattis - intersectingrectangles