Write a function that returns the longest common prefix of an array of strings, or an empty string if there is none.
Practise this challenge
All coding challenges