solved [longest common prefix]