Realtor.com interview question

coding questions about string / array manipulations