Pergunta de entrevista da empresa Meta

Python and SQL questions. I wasn't fast enough so I ran out of time.