United Airlines interview question

Q: How to find element in array?