Example 2longestCommonPrefix()InputCopystrs = ["dog","racecar","car"]OutputCopy""WhyThere is no common prefix among the input strings.