Question d’entretien chez ByteDance

Coding exercise, list and dictionaries in Python.