text: class Solution:
      def maxProfit(self, prices: List[int]) -> int:
          profit = 0
          for i in range(len(prices)-1):
              if prices[i+1] < prices[i]:
                  continue
              profit += prices[i+1] - prices[i]
          return profit
  