added pop after visiting both left and right child
added pop after visiting both left and right child

bkpathak/Programs-Collections,bkpathak/HackerRank-Problems,bkpathak/HackerRank-Problems,bkpathak/Programs-Collections