shuffleArray.js( ***REVISE***)
/*Shuffle array Description Given an array consisting of 2n elements in the form [x1, x2, ..., xn, y1, y2, ..., yn], suffle the array into [x1, y1, x2, y2, ... , xn, yn]. Assume that n is never 0. Input format First line contains a positive integer, denoting n. It is followed by 2n lines. Each line contains one integer. Output format 2n lines where each line contains one element of the shuffled array. Sample input 3 2 5 1 3 4 7 Sample output 2 3 5 4 1 7 Explanation 1) First line is 3, i.e. Following 6 lines are the elements of the array. 2) The first 3 lines contains the first half of the array and the 2nd set of 3 elements contain the second half of the array. 3) First 2 lines of output will be first element of first half, first element of second half so the first 2 lines of the output are 2 and 3. 4) Next 2 lines of output will be second element of first half and second element of second half, so the next 2 lines of output will be 5 and 4 5) Next 2 lines of output will be th...