Pergunta de entrevista da empresa CME Group

Stock Buy and Sell question from Leet code