Robinhood Interview Question

Leetcode medium/hard