Pergunta de entrevista da empresa Zillow

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