Yellow Pages interview question

concerns on design patterns and complex database