Rearrange positive and negative numbers in an array without changing their order

mediumLast edited: August 2, 2025