maxProfit(prices) -> int
Run the lab and every read, write, compare and swap will replay here, step by step.
Press run_lab() to execute your code and watch it animate.