Minimum Spanning Tree Leetcode