Pregunta de entrevista de Meta

stack and tree based questions