Meta interview question

One tree problem and one array problem