Solution for Longest Common Prefix.