I am not able to understand how to solve this problem in python, please help me.
Here is my code
count = 0
e =[]
n = int(input())
for i in range(n):
t = int(input())
e.append(t)
i,j = 0,1
while(j<n):
if e[i]<e[j]:
i +=1
j +=1
continue
if e[i]>=e[j]:
i +=1
j +=1
count+=1
if count>1:
print(‘false’)
break
else:
continue
if j==n:
print(‘true’)
