Solve one problem DP