Top Down And Bottom Up Approach In Dynamic Programming