How do I append the previous item in array to the next item in the array for unknown number of items?How do I append the previous item in array to t
How do I append the previous item in array to the next item in the array for unknown number of items?How do I append the previous item in array to t