Pergunta de entrevista da empresa Mavrx

How do you find whether a given date window has any overlap with another given date window using only two comparisons?