Wrong output example


#1

output for [7,7,10,10,9,5,2,8] should be 0 not 1