OpenText interview question

longest common prefix in a strings