Driver Code
public static void Main ( String [ ] args ) { int [ ] a = { 9 , 50 , 4 , 14 , 42 , 89 } ; int k = 10 ; int n = a . Length ; Console . Write ( minimum_required_operations ( a , n , k ) ) ; } }