Robinhood interview question

they were 2 leetcode hard problems