Frage im Vorstellungsgespräch bei Tata Consultancy Services

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