Min Cost to Connect All Points

Implement solve for Min Cost to Connect All Points. Return the required output for the provided arguments.

Examples
Input: [[0,0],[2,2],[3,10],[5,2],[7,0]]
Output: 0
Hints

Min Cost to Connect All Points

Implement `solve` for **Min Cost to Connect All Points**. Return the required output for the provided arguments.