Pergunta de entrevista da empresa Microsoft

Buy/Sell stocks, easy difficulty on Leetcode