Minimum Spanning Tree Problems Leetcode