YouTrip interview question

2. Stack Question, with some operations like DUP, POP, +,-, output will be the top value in the stack after all operations.