Arista Networks Interview Question

Knowledge of array algorithm, finding