State Farm interview question

Coding question was about figuring out if two rectangles intersect.