Microsoft Interview Question

find longest common prefix from an array of strings