NVIDIA Interview Question

Efficiently implement 3 stacks in a single array.