Visa Inc. interview question

Given a Binary tree print all the vertical lines elements