Find longest common prefix for an array of strings, very straightforward solution.