Media.net interview question

Questions were based on dynamic programming.