Create same-tree.cpp

Tree is a recursive structure.