Anonymous interview question

String patterns in java Basic MCQ