Oracle Interview Question

Questions on DP and stacks