Amdex Interview Question

they questions from Dynamic Programming