write a program for DFA string to accept a string for all the combinations of a and b, but not aa or dd.