Clinc interview question

String and OOPs question