State Farm Interview Question

Coding question was about figuring out if two rectangles intersect.