Pregunta de entrevista de Amazon Web Services

They asked me a coding question about stacks