MongoDB interview question

Implement a stack API by choosing an appropriate data structure and filling out methods (push, pop, print)