human
Minimum increment by k operations to make all elements equal | function for calculating min operations.
max elements of array.
iterate for all elements.
check if element can make equal to max or not if not then return - 1.
else update res fo required operations.
return result.
driver program"
How can the above be solved in Python?

=====
What is a code to minimum increment by k operations to make all elements equal and the other steps required?
assistant
#Here is code to minimum increment by k operations to make all elements equal and the other steps required.
 def minOps ( arr , n , k ) :
	max1 = max ( arr )
	res = 0
	for i in range ( 0 , n ) :
		if ( ( max1 - arr [ i ] ) % k != 0 ) :
			return - 1
		else :
			res += ( max1 - arr [ i ] ) / k
	return int ( res )
arr = [ 21 , 33 , 9 , 45 , 63 ]
n = len ( arr )
k = 6
print ( minOps ( arr , n , k ) )