Revolut Interview Question

maximum likelihood estimation for Bernoulli distribution