Topic: Greedy Algorithm Problem / Level: intermediate

Problem: You are given an array of stock prices. Find the maximum profit that can be made by buying and selling the stock multiple times.

Run the code to see the output here...