Snap Interview Question

Something to do with stack