Pregunta de entrevista de NVIDIA

Efficiently implement 3 stacks in a single array.