fabric interview question

DS ---- array and tree react javascript