Pergunta de entrevista da empresa Senseforth.ai

Write 2 logics to separate the array of integers with +ve values on the RHS and -ve values on the LHS. The solution should be in 1 loop, no extra space and no recursion should be used.