Java code to count the change required to convert the array into non - increasing array
import java . util . PriorityQueue ; class GFG { public static int DecreasingArray ( int a [ ] , int n ) { int sum = 0 , dif = 0 ;