Microsoft Interview Question

Write code to tell if two rectangles are intersecting.