Anonymous Content interview question

String based ques average level code was asked