Flipkart interview question

Q:Convert an array into zig-zag fashion?