added solution for symmetric tree problem