add 67 solution(bottom up dynamic programming)