結果 : longest common prefix python solution