Concept Flow - Longest Common Prefix
Start with first string as prefix
Compare prefix with next string
Find common prefix between prefix and string
Update prefix
More strings?
Yes→Repeat comparison
No
Return prefix
Start with the first string as the prefix. Compare it with each next string to update the prefix to the common part. Stop when no more strings or prefix is empty.
