Unity interview question

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