Pregunta de entrevista de Zillow

Is the binary tree symmetric. Count duplicate values in a string.