Minimum Cost to Select a Subarray

Company: AMAZON ML SUMMER SCHOOL_28june

Difficulty: medium