Maximize Win From Two Segments

Maximize Win From Two Segments - Coding Problem | K5kC