Robinhood interview question

Leetcode medium questions