the first S represents (a+b)*
and the next 2 states are S so they are same as S(first state)
that is output of 2,3 states are generated by first S, that means we can combine those 3 states and finally make S as final state
which lead to option D that is (a+b)*