Pergunta de entrevista da empresa TEKsystems

Swap the minimum element in a array with the middle element using minimum number of itrations