Firstly a Muslim female shouldn't have male non-mahram friends. So this is already out of the question. Yes, interaction with the opposite gender at the workplace for example is permitted.
In regard to discussing private sexual matters with her female friends, this should be avoided. Unfortunately some women fall into this and divulge intimate details of their spouses.
If the woman genuinely needs advice related to sexual matters, she can speak or ask in a general sense without making it specific to herself.
May Allah grant you success