code: def next_non_holiday_weekday(holidays, dt):
      
      day_of_week = dt.weekday()
  
      if day_of_week == SUNDAY:
          while is_holiday_or_weekend(holidays, dt):
              dt += timedelta(1)
  
      return dt
docs: If a holiday falls on a Sunday, observe it on the next non-holiday weekday.
  
      Parameters
      ----------
      holidays : list[pd.tseries.holiday.Holiday]
          list of holidays
      dt : pd.Timestamp
          date of holiday.