UiPath Interview Question

(Round 2) Make queue using single stack.