Problem 4. Total 2D Segments Coverage.