How would you find the common prefix among an array of strings?
Implement longest_common_prefix(strings), where strings is a list of strings. Return the longest string that appears at the beginning of every input string, or "" if no common prefix exists. An empty input list must also return "".
def longest_common_prefix(strings):