Yellow Pages Interview Question

Nothing difficut to answer