Frage im Vorstellungsgespräch bei State Farm

Coding question was about figuring out if two rectangles intersect.