Domanda di colloquio di Fast Enterprises

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