The question is easy to understand but how to input sameple test case is very tricky


#1

On this earth do you think somebody gives input in this way.I cannot understand how input is given at least for god sake can you explain bit deeper how input is given.
I CANNOT UNDERSTAND ANYTHING INTERVIEWBIT CAN YOU EXPLAIN BIT
There is 1 line in the input. Line 1: The first number N is the number of nodes in the list. Then N numbers follow each corresponding to label of the nodes in order. Then N more numbers follow corresponding to the index of the random node. If index > N, index %= (N+1); if index == N, then random pointer points to NULL.