United Airlines Interview Question

Q: How to find element in array?