Revolut interview question

maximum likelihood estimation for Bernoulli distribution