Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use two pointers to create the new array of 2n elements. The first starting at the beginning and the other starting at (n+1)th position. Alternate between them and create the new array.