add simple dp question from leetcode

Signed-off-by: Wei Jin <wjin.cn@gmail.com>