hackerrank predicting stock prices