Longest Common Prefix

find longest common prefix among an array of strings