Pregunta de entrevista de Design House

Manipulate a python dictionary and optimize it based on changing requirements