Find the longest common prefix among an array of strings. If there is none, print an empty line.
Input: one line of space-separated words. Output: the longest common prefix.
flower flow flight
fl
dog racecar car
No common prefix.
Run your code against the sample tests, or Submit to run the full suite.