Pergunta de entrevista da empresa Citadel

How would you set state with a nested object