Walmart Interview Question

Print the matrix in zigzag form.