Pregunta de entrevista de Fast Enterprises

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