getting wa in TREEGAME (august cook off). can someone give me test cases?

i am getting wrong ans in TREEGAME question. can someone give me test cases where my code gives wrong answer. Thanks in advance.
my solution

edges are bidirectional. everything else seems fine

1 Like

Thanks got accepted

//