Pergunta de entrevista da empresa TikTok

write optimum algorithm for sorting or finding something.