Fewest Value Rewrites So Every Shelf Slot Sits Under A Matching Bracket

Company: Juspay_IIITA_28sep

Difficulty: hard