2867. Count Valid Paths in a Tree - Hard | DSA Corner | Talentd