Showing wrong output in the test cases

This is showing the wrong output in all the test cases
but passes in custom input

t = int(input())
for i in range(t):
n = int(input())
s = input()
a = [int(x) for x in s.split()]
maxm = a[0]
count = 1
for j in range(1,len(a)):
if a[j]>=maxm:
count+=1
maxm = a[j]

print(count,'\n')

inside for loop in if condition write if(a[j]>maxm) instead of if(a[j]>=maxm) and then try.

but if same height building came

but with this condition what is the problem

Pls write ur code on coding blocks ide and share the link.

Also pls give the link of question too.

https://online.codingblocks.com/app/player/147870/content/132412/8406/code-challenge