Rover.com Interview Question

Something about String parsing