In this case
1 4 1 -2 2 1
My solution outputs 2 because it thinks that the two occurrences of 1 1 -2 2 -1 1 are different...
2
1 1 -2 2 -1 1
In this case
My solution outputs
2because it thinks that the two occurrences of1 1 -2 2 -1 1are different...