Compute optimal costs using a Bottom-Up approach.

If we solve smallest subproblems first, then larger problems will be easier to solve.

Define Arrays