def common_prefix(s1, s2):
    """Return the common prefix of strings s1 and s2."""
    prefix = []
    for c1, c2 in zip(s1, s2):
        if c1 != c2:
            break
        prefix.append(c1)
    return ''.join(prefix)