Which statement describes how the bond between two oxygen atoms is formed?

by sharing valence electrons with many other atoms

by the repulsion between ions of like charges

by the attraction of two oppositely charged ions

by sharing valence electrons between the two atoms