Crossover for Work interview question

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