

You are given an undirected unweighted graph and you are supposed to find all articulation in the graph.
The first line of input will contain T(number of test cases), each test case follows as.
Line1: contain two space-separated integers denoting the number of vertex and number of edges in the graph respectively.
Next M lines contain two space-separated integers u and v denoting the edge between u and v
Output Format:
For each test case print the list of articulation points in sorted order in a new line.
1 <= T <= 100
1 <= N, M <= 10^4
1 <= u, v <= N
1
4 4
1 2
1 3
2 3
3 4
3
Time complexity: O(N*log(N) + M)