Sasken interview question

String operations