Longest Common Prefix

Write a function to find the longest common prefix string amongst an array of strings strs. If there is no common prefix, return an empty string "".

Python

####Horizontal Scanning (Runtime: 5ms, Memory: 12.4MB)

#DECLARE strs: ARRAY of STRING