Write code to compare two trees to see if their leaf nodes contain the same letters in the same order or not.
Dee Koodu iji choputa ma osisi abuo yiri onwe ha Nsogbu a "Dee koodu iji chọpụta ma ọ bụrụ na osisi abụọ ahụ yiri" na-ekwu na e nyere gị osisi abụọ ọnụọgụ abụọ. chọpụta ma hà bụ otu ma ọ bụ na ha abụghị?