BMO Financial Group Interview Question

Coding problem: LeetCode problem on maximizing profit from buying and selling stocks.