Amazon Interview Question

find whether a tree is subtree or not