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.
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,A,… ,A[n-1] indicating the estimations of A.
For each experiment print a solitary whole number – the missing move number of understudy on new line.
3 1 2
DOWNLOAD THE SOLUTION