Solution for NumberOfDiscIntersections (Brute-force)