Citadel Securities interview question

Dynamic Programming. Recognizing a 3d dp problem and efficient solution. Also sliding window (239)