Meta Interview Question

Data Stucture and Algorithm question