Citi Interview Question

basic search & sort algorithm