It'd be great if anyone could help in explaining the approach to solve below problems -
Tree and Query
String Ordering
Appreciate the help!