Arista Networks interview question

Knowledge of array algorithm, finding