Meta interview question

Data Stucture and Algorithm question