Recycle and treatment of wastewater produced from pharmaceutical plant