Coding Questions on Dynamic Programming