Domanda di colloquio di CME Group

Stock Buy and Sell question from Leet code