after 'a' there should be atmost 5 b's..if 'a' is coming in W2 that will be merge to 'W1a'
verify both valid string they are accepted and also verify that invalid string that is not getting accepted.
The DFA will be
64.3k questions
77.9k answers
244k comments
80.0k users