Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i.e., buy one ... Note: We can buy the stock on the same day once we sell the already bought stock.