Codecademy interview question

Tree Question