FloQast interview question

Manipulate some array with objects in it.