Tintri interview question

String manupulation.