Pergunta de entrevista da empresa Meta

Expected value combined with probability