Pregunta de entrevista de TikTok

question on searching algorithm in a list