Google interview question

Intersect lines