in universe Earth C137 Rick discover special form magnetic force ball new invent basket Rick n basket ith basket positioni Morty m ball need distribute ball basket minimum magnetic force ball maximumRick state magnetic force different ball position x y x yGiven integer array position integer m return required force Example 1input position 12347 m 3output 3explanation distribute 3 ball basket 1 4 7 magnetic force ball pair 3 3 6 the minimum magnetic force 3 we achieve large minimum magnetic force 3example 2input position 543211000000000 m 2output 999999999explanation we use basket 1 1000000000 Constraintsn positionlength2 n 1051 positioni 109All integer position distinct2 m positionlength