Question d’entretien chez Millennium

I was asked probability and coding question