Yext Interview Question

Iterate in zig-zag pattern through matrix