Oracle interview question

Questions on DP and stacks