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