Pergunta de entrevista da empresa Fast Enterprises

Given several time line, write an algorithm to see if they intersect.