I am writing a function to \'Rearrange Array Alternately\'. Here\'s a link to the question.
How do I stop elements from Repeating?
Input : [1,2,3,4,5,6] (A sor