Citi interview question

basic search & sort algorithm