Solved LongestCommonPrefix

in ten minutes!