# 주식가격 - 프로그래머스
from collections import deque
def solution(prices):
ret = []
q = deque(prices)
while q:
cnt = 0
end = q.popleft()
for n in q:
cnt += 1
if end > n:
break
ret.append(cnt)
return ret