solved NumberOfDiscIntersections, codility