add solution of Longest Common Prefix