Rover.com interview question

Something about String parsing