Common prefix

Write common_prefix(a, b) that returns the longest string that both a and b start with.

common_prefix("sourdough", "soup")  ->  "sou"
common_prefix("milk", "bread")      ->  ""
def common_prefix(a, b):
    ...