longest common prefix leetcode