https://www.hackerrank.com/challenges/stockmax