Euromonitor interview question

Tree hierarchy data structure