Wrong expected answer for input


#1

[ 4, -9, 8, 5, -1, 7, 5, 3 ]

for above input, the expected is shown as 1, whereas it should be -1. please clarify


#2

[-9, -1, 3, 4, 5, 5, 7, 8]
for integer 4 there are four greater elements ( 5 , 5 , 7 , 8 )