Microsoft interview question

Write code to tell if two rectangles are intersecting.

Microsoft Interview Question: Write code to tell if two rectangles are intersecting. | Glassdoor