Meta interview question

Time complexity, basic SQL functions