Question d’entretien chez TikTok

question on searching algorithm in a list