Concept Flow - Longest Common Prefix
Start with first string as prefix
For each next string in array
Compare prefix with current string
Shorten prefix until it matches start of current string
If prefix empty, return ""
Next string
All strings processed
Return prefix
Start with the first string as the prefix. Compare it with each next string, shortening the prefix until it matches the start of that string. If prefix becomes empty, return empty string. Otherwise, after all strings, return the prefix.
