Amazon interview question

DSA questions based on Stacks