Longest Common Prefix Leetcode Solution In C