Leetcode 1627. Graph Connectivity With Threshold | Hello Interview