Educative (WA) interview question

String manipulation, Binary trees, Linked lists.