Construct NFA and DFA Construct NFA and DFA which accepts all the strings that ends with aa or bb or ab or ba.