IXL Learning interview question

Simple String manipulation