Amazon Interview Question

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