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