Pregunta de entrevista de Tata Consultancy Services

I was given 2 programs .One is sorting of array.