Yellow Pages Interview Question

concerns on design patterns and complex database