Create Triangle II.java

Use DP to solve the problem.