Domanda di colloquio di Samsung Electronics

basic question on arrays and trees