Pergunta de entrevista da empresa UBS

Buy and Sell Stock standard problem