Given Sample Test Case in the Example is wrong


#1

For input A=[7, 7, 10, 10, 9, 5, 2, 8], output should be 0.

.