Flipkart Interview Question

Q:Convert an array into zig-zag fashion?