Function to find working dates

Once we have the array containing all the dates between the start date and an end date. And an array containing all the holiday dates and another array containing all the working weekend dates, we can move on and find the working dates using the following function.

In the given code it is assumend that Saturday and Sunday are holidays.