Print array elemets in "snail" order. Used vanilla-js