# 해시 : 전화번호 목록

def solution(phone_book):
    answer = True
    dic = {}

    for phone_number in phone_book:
        dic[phone_number] = 0

    for phone_number in phone_book:
        prefix = ""
        for number in phone_number:
            prefix += number
            if prefix in dic and prefix != phone_number:
                answer = False

                return answer

    return answer

b7a698312882670808a85befdb1f0dfca48a60b7
<mask token>

def solution(phone_book):
    answer = True
    dic = {}
    for phone_number in phone_book:
        dic[phone_number] = 0
    for phone_number in phone_book:
        prefix = ''
        for number in phone_number:
            prefix += number
            if prefix in dic and prefix != phone_number:
                answer = False
                return answer
    return answer

# 해시 : 전화번호 목록

def solution(phone_book):
    answer = True
    dic = {}

    for phone_number in phone_book:
        dic[phone_number] = 0

    for phone_number in phone_book:
        prefix = ""
        for number in phone_number:
            prefix += number
            if prefix in dic and prefix != phone_number:
                answer = False

                return answer

    return answer
