Question d’entretien chez Flipkart

Q:Convert an array into zig-zag fashion?