NeoSOFT interview question

string and array manipulation ,