Leetcode 3367. Maximize Sum of Weights after Edge Removals | Hello Interview