Pergunta de entrevista da empresa Amazon

Asked me to sort an array not using a common sorting algorithm.