Sogeti Interview Question

What is the best way to pull a requested string from an array?