ReferWell interview question

They asked me to parse an array of objects and remove all nulls from the structure