Pergunta de entrevista da empresa WedMeGood

Segregate negative and positive number in an array maintaining the order