Pergunta de entrevista da empresa Tech Mahindra

he asked me to sort an array using an alogorithm and explain that alogrithm