Add a solution of Longest Common Prefix.