Adobe interview question

DATA STRUCTURE AND ALGO ,AI