Carousell interview question

Data structures and algorithm questions