There are multiple test cases.The first line of input contains an integer T, indicating the number of test cases.For each test case:The first line contains an integer n
In the next n-1 lines, each line contains two integers ui and vi
, denoting an edge between monkey ui and monkey vi.
For each test case, output an integer S, denoting the number of triple of monkeys that are happy.