Given multiple words, you need to find the longest string that is a substring of all words.
A string of words, separated by spaces. The string can also contain numbers.
A string, representing the longest common substring. If there are multiple longest common substrings, output the smallest one in alphabetical order.
SoloLearn Learning LearningIsFun Learnable
Learn
Learn is the longest common substring for the words SoloLearn Learning LearningIsFun Learnable.