Man Group interview question

Dynamic programming live coding question