in case if whole first array element is a common prefix alt function won't return anything because conditional statement won't run and no fallback return provided
if we run code like alternative(['do', 'dough', 'double']) return statement will not be executed
we can add return strs[0] right after for cycle closing bracket to use as a fallback in such a case