Question d’entretien chez Amazon

A leetcode style question relating to dicts