Pergunta de entrevista da empresa Design House

Manipulate a python dictionary and optimize it based on changing requirements