Amazon interview question

Q: based on stacks, two stacks were there. Q: based on API.