Question d’entretien chez Amazon

Write a function to determine if a tree is symmetrical