Added topcoder exercise about dynamic programming.