Cognizant interview question

Simple array program. Search implementation in Selenium for automation testing of a web application.