Best Position for a Service Centre

From LeetCode. Geometric median. Solve the geometry problem "Best Position for a Service Centre".

Examples
Input: [1,2,3]
Output: 0
Hints

Best Position for a Service Centre

**From LeetCode.** Geometric median. Solve the geometry problem "Best Position for a Service Centre".