What was the output?


#1

For given output :
4
2 1 2
2 2 3
output??
0 or 1


#2

0
because of cycle 2->2