Initial graph

Simple minimization of the NFA

Intermediate step

Transforming into DFA

DFA