title: Convert array to a sorted one using only two operations
body: <p>I found this question on an online forum: Really interested on how it can be solved:</p>
  
  <p>Given an array A of positive integers. Convert it to a sorted array with minimum cost. The only valid operation are:<br>
  1) Decrement with cost = 1<br>
  2) Delete an element completely from the array with cost = value of element  </p>
  
  <p>This is an interview question asked for a tech company</p>