DoorDash Interview Question

Code a stack data structure