Intuit interview question

Three parrot question of String manipulation