Pergunta de entrevista da empresa Hexaware Technologies

To sort the given array was one of my technical question