Meta Interview Question

One tree problem and one array problem