JK Tech interview question

Data structure and algorithms, SQL related