This is not the correct answer since the question clearly asked to draw a DFA. In the diagram above, for every input symbol, i.e, there is no transition from state q0 on input symbol ‘b’ and similarly there is also no transition from state q1 on input symbol ‘a’.