Pergunta de entrevista da empresa Unity

Transform a data structure to another data structure based of certain rules