Block interview question

String manipulation