Bottom up code of dp

need bottom up code…?