Leetcode 2581. Count Number of Possible Root Nodes | Hello Interview