Google Interview Question

Intersect lines