TikTok interview question

Longest common prefix in an array of strings (leetcode)