S&P Global Interview Question

Program to print a tree in zigzag format