add spec for longest common prefix
expand solution for longest common prefix
full solution implemented for longest common prefix
add comment for clarification