Example Of Dynamic Programming Algorithms For Interviews