Pergunta de entrevista da empresa ING

code problem 2 - maximum profit by buying and selling a stock