Minimum Cost to Make Array Elements Distinct

Company: Ibm_23jan

Difficulty: medium