Pergunta de entrevista da empresa Meta

Coding in python related to lists and dictionaries.