OpenText interview question

How do you parse an array based on a specific criteria.