Pergunta de entrevista da empresa Cognizant

I have given to write a code in c++ to sort array