Tripadvisor interview question

Saving and retrieving data based on location string