14 Longest Common Prefix Leetcode Solution Python