Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
What is the ruling on performing voluntary prayers during official working hours?
All perfect praise be to Allah, The Lord of The Worlds, and may His Peace and Blessings be upon our Prophet Muhammad and upon all of his family and companions
There is no harm if there was break time during official working hours, but if not then it is impermissible. And Allah Knows Best.
What should one who forgot to offer the second Sajda during congregational prayer, and remembered it before the end of the prayer do?
All perfect praise be to Allah, The Lord of The Worlds. Whoever forgets a pillar of prayer while in congregation must follow the lead of the Imam, and after the latter offers Tasleem, he should offer one Rakah, then perform Sujood As-Sahw (prostration of forgetfulness). And Allah Knows Best.
Is it permissible to single out Fridays, Saturdays, and Sundays to make up for missed fasting without fasting a day before ,or after each ?
Yes, it is permissible to make up for missed fasting during the aforesaid days, and it is also valid to offer non-obligatory and vowed fasting as well. However, fasting a day before or after each isn`t obligatory. And Allah Knows Best.