Rover.com interview question

Tdd based string manipulation questions