Pergunta de entrevista da empresa RainFocus

SQL, some basic algos and complexity questions