Question d’entretien chez Pinterest

Technical question was about restructuring and filtering an array of objects.