KLA interview question

String and list manipulation, OOP based question: inheritance, etc