Pergunta de entrevista da empresa bp

Two questions - one on SQL and another on Python