Talaq(divorce) has certain condition that needs to be met for it to be valid.
As Referred in the comment, Allah says in the Quran(2:228 and 2:229), One of the condition for Divorce is that
Divorced women remain in waiting for three periods, and it is not lawful for them to conceal what Allah has created in their wombs if they believe in Allah and the Last Day. And their husbands have more right to take them back in this [period] if they want reconciliation.
which didn't happen in your friend's case between two Talaq. So it is not valid. There are other condition as well which voids this Divorce. But since it was already been detailed in the link provided by Rebecca and (here). I have just listed one of those condition.If necessary I will append my answers.
The answer is NO. It is not valid.