Vodafone Interview Question

How to filter an array of objects for example