Electronic Arts interview question

tree problems