Count the number of Fridays (or weekdays) between two dates.
Asked in the Coding round stage.
Write a function that takes two dates and a mode, then returns how many dates in the inclusive range match the requested day type. mode is either "friday" or "weekday", where "weekday" means Monday through Friday.
start_date: a date string in YYYY-MM-DD formatend_date: a date string in YYYY-MM-DD formatmode: a string, either "friday" or "weekday"def count_days_in_range(start_date, end_date, mode):