Symmetric tree problem

can u please xplain why is it giving runtime error

Hey @gulatigarvita08
Because inside while loop if top is null then also u are trying to access top->left and top->right