Compute posterior and event counts in fraud screen | Meta Interview Question