Pergunta de entrevista da empresa Microsoft

Write code to tell if two rectangles are intersecting.