MathWorks interview question

Like using bayes theorem for simple question