StreetEasy interview question

Coding challenge