Place 2 tablespoons of lemon juice and 1 tablespoon of table salt in a small bowl. Stir the two ingredients with a spoon.
Lay your moldy bathing suit on a clean towel in direct sunlight, inside or outside. Spoon the lemon and table salt mixture onto any visible mold stains or areas that are particularly smelly.
Let your bathing suit sit in the Sun for at least one hour to kill mold spores and freshen the fabric. Brush the lemon juice and salt paste off with a clean cloth.
Drop your bathing suit into a bucket. Pour full-strength white vinegar over the bathing suit until half-covered. Add water to cover the remainder of the swimsuit. Allow your bathing suit to soak for 30 minutes to further deodorize the fabric.
Remove your bathing suit from the bucket and empty the vinegar solution. Fill the bucket with cool water and add 1 teaspoon of laundry detergent.
Dunk your bathing suit in and out of the detergent solution for one minute to wash it. Rinse the suit completely to remove the detergent.
Lay your clean bathing suit on the towel. Roll the suit in the towel and press down to absorb excess moisture. Line-dry your bathing suit until completely dry.