Minimum Time to Partition a String With Matching Pair Costs

Company: Zomato

Difficulty: medium