Pregunta de entrevista de Tavant

Array question.Sorting and arranging positive and negative.