Project Euler 630 - Crossed Lines

Official link: https://projecteuler.net/problem=630