Pregunta de entrevista de Fidelity Investments

basic technical questions about stack and queue ,some real problems related questions