Min Spanning Tree Leetcode Question 169