Unity Interview Question

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