Microsoft interview question

Trees , strings , sorting