easy dp problem