Longest Common Prefix Leetcode Solution