Zillow Interview Question

Simple string manipulation problem.