Best Time to Buy and Sell Stock II — grab every rise
You can trade as often as you like, so the best profit is simply the sum of every day-to-day price increase. Skip any drop.
Try:
total profit 0