Pergunta de entrevista da empresa CVS Health

Solve a few sql code if not solve some code in python