Pregunta de entrevista de WedMeGood

Segregate negative and positive number in an array maintaining the order