Interview Guides
Given an array of integers representing historical commodity prices at Castleton Commodities International, find the maximum profit you could achieve by buying and selling a commodity asset, assuming you can only complete a limited number of transactions.