Anonymous interview question

first two rounds were on data structure and algorithm