Smarsh Interview Question

Data structures and algorithm, sql