Pregunta de entrevista de Vodafone

How to filter an array of objects for example