Count Valid Paths in a Tree

Count Valid Paths in a Tree - Coding Problem | K5kC