Neyond interview question

what the algorithm does, and how to search trough a table in sql