Pergunta de entrevista da empresa Apple

Write 4 classes of stack operations, the stack receives input of characters, each input size changes dynamically.