Citadel Interview Question

DP + Graphs Stocks Problem