Pergunta de entrevista da empresa Thales

Classic overlapping time interval question