Maximize Stock Trading Profits Using Dynamic Programming | Citadel Coding Question