Question d’entretien chez Amazon

Given two intervals, check if they intersect.