Achieve interview question

Some dynamic programming coding questions.