longest common prefix solved