dp solution
doc