Need help with this question. Thank you! Problem 146. Give an algorithm for the following decision…

Need help with this question. Thank you!
Problem 146. Give an algorithm for the following decision problem. DFA AcceptNoOdd INPUT: A DFAM QUESTION: Does M accept no odd-length strings? This is the same as asking, when D is the set of all odd-length strings, whether L( MD=0.