IXL Learning interview question

return longest prefix shared by n strings