Bloomberg interview question

Both are tree style problems