HireVue interview question

Check if item already exists in array