Factorial Dynamic Programming, Step-by-step execution: For n = 4.