Minimum Spanning Tree Problem Leetcode 150 List