Pergunta de entrevista da empresa State Farm

Coding question was about figuring out if two rectangles intersect.