sort array in accending order while minimizing the cost

Printable View