what's wrong with my EVENT code

EVENT - NOVEMBER LUNCHTIME 2018
Plz tell me the exceptional test cases for which my code get fails

check out my code - here

Thnks

Your code generates impossible for the following input

1
monday wednesday 7 10

while it should be 10.