Finish solution to compute max stock price