Crossover for Work Interview Question

SQL queries, Big-O complexity & some very simple string coding questions.