Microsoft interview question

How would you use machine learning to detect bugs in code and fix them?