Compute probabilities for chatbot response quality | Meta Interview Question