Here is the dfa. In dfa we need to define the transition for every alphabet at every state otherwise it will not be a dfa.
64.3k questions
77.9k answers
244k comments
80.0k users