IonIdea interview question

a program on string