THE BUNKING GUY SOLUTION
There are N understudies in a class, roll numbered from 1 to N. At the point when an understudy doesn’t care for a subject, he bunks the talk. Be that as it may, for a given talk just a single understudy bunks and rest all joins in. The educator needs to discover the move number of the understudy bunking the talk. So for a given N and an exhibit An of length N-1, help the educator in finding the missing understudy.
Info:
The principal line contains a solitary whole number T indicating the quantity of experiments. The principal line of each experiment conatins a number N. The second line of each experiment contains N-2 space seperated whole numbers, A[1],A[2],… ,A[n-1] indicating the estimations of A.
Yield:
For each experiment print a solitary whole number – the missing move number of understudy on new line.
Imperatives
1≤T≤1000
2≤N≤109
1≤A[i]≤109
Test Input:
1
4
3 1 2
Test Output:
4
DOWNLOAD THE SOLUTION