Pergunta de entrevista da empresa IMC Trading

They asked SQL query, regex and a python question.