Symmetric tree problem

can u please xplain why is it giving runtime error