Leetcode 3559. Number of Ways to Assign Edge Weights II | Hello Interview