Add solution for calculating best profit for stock prices