Leetcode 3558. Number of Ways to Assign Edge Weights I | Hello Interview