Paint binary tree on console implemented using C++