If a person submerses themselves in running water (Inghamasa fi al-ma' al-jari) and stays for a moment, they have completely fulfilled the Sunnah of threefold washing in Ghusl.

Obligatory Bath (الغسل): Sunnahs, Etiquettes, and Types