Google Interview Question

A stack question and a binary tree question