Create printLeafNode.cpp