Freight Train Segment Split — Coding Problem — CareerVerse