WeWork interview question

Phone Screening/Coding: Working with stacks