10. Longest Common Prefix
Write a function that finds the longest common prefix among an array of strings.
Contoh 1:
Input: strs = ["flower","flow","flight"] Output: fl
Contoh 2:
Input: strs = ["dog","racecar","car"] Output:
Batasan:
1 <= strs.length <= 200