Keysight Technologies interview question

Dynamic Programming