Minimum Spanning Tree Problem Leetcode Solutions