Pergunta de entrevista da empresa NVIDIA

Efficiently implement 3 stacks in a single array.