Zanskar interview question

To find ans print Zigzag string pattern