words. Find the longest string that **every** word in the array begins with.
If the words do not even share their first letter, return the empty string "".words=['station', 'statue', 'status'] → 'stat'
All three words start with "stat" and then go their separate ways.
words=['river', 'liver', 'rivet'] → ''
"liver" starts with a different letter, so there is no common start and the answer is the empty string.
words=['code', 'co', 'coder'] → 'co'
The common start cannot be longer than the shortest word, "co".
words[i] consists of lowercase English letterswords=['station', 'statue', 'status']
'stat'
Run checks the first 3 tests in your browser. Submit checks all 151 tests on the server, hidden ones included.