Pregunta de entrevista de Google

A stack question and a binary tree question