Minimum Even-Length Subsegments

Company: Amazon_july

Difficulty: medium