Adding solution of Longest Common Prefix