Amazon interview question

Write a function to determine if a tree is symmetrical