Solution to Maximum Profits Problem

Solution to Maximum Profits Problem - student project

function maximumProfits(prices) {

const l = prices.length;

let max = 0;

for (let i = 0; i

     for (let j = i+1; j

        let k = prices[j] - prices[i];

       max = (max

    }

  }

return max;

}