Domanda di colloquio di Binance

Technical question was a medium Leetcode question