In an old movie a husband allows his wife to have sex with a stranger in beach in front of him.Plz tell me the movie name

In that scene, first husband have sex with her and then allow a stranger to have sex with her. Its happening in beach at night.