This question already has an answer here:
Which would be the right
chmod value for a directory where everyone can write on it, but only the owner of the content can delete it?
chmod 1755 path_to_directory would be the right one, but it isn't.
I am beginner on linux, i tried finding this on google, but i wasn't successful.