problem 55 accepted

dynamic programming