Domanda di colloquio di Pinterest

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