Pergunta de entrevista da empresa Fingent

To sort an array of strings while ensuring original index association is preserved