Pregunta de entrevista de TikTok

write optimum algorithm for sorting or finding something.