Much as I am angered with what you are facing, I am grateful that you are far past such foolish employers.
Good that you will not be wasting your effort and intellect in there.
May I ask what job are you applying for? Where are you based?
Looking forward to hear from you.
27th February 2016 From India, Mumbai
I am saddened to hear that you got this kind of treatment. But please don't get disheartened. I don't know about suing, but you can definitely refuse to answer such questions. I know it is easy to blame the most obvious fact but please don't. The reason will be somewhere else. I don't have your CV nor have spoken to you so cannot comment much but can only give you some insights from my interaction with other women who have faced similar situation such as yours.
In the beginning of one's career one is likely to face a lack of demand for one's skills and thus career stagnation. It can happen because the skills are either in over supply or there are cheaper alternatives available. Many women have changed their line or gone for higher education to acquire specific skills which are highly demanded or take some coaching on how to handle the interview.
Look upon this as a blessing in disguise. And if you like to send me your CV to take a look, you can do so on firstname.lastname@example.org
All the Best, I am sure you will find the right job,
Geet Mala Jalota
28th February 2016 From India, Mumbai