Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT input = [ " geeksforgeeks " , " geeks " , " geek " , " geezer " ] NEW_LINE print ( " The ▁ longest ▁ Common ▁ Prefix ▁ is ▁ : " , longestCommonPrefix ( input ) ) NEW_LINE DEDENT