Pergunta de entrevista da empresa Robinhood

coding question on no orders backlog