Robinhood interview question

The most difficult one was the project deep dive. The algorithm was easy.