Pregunta de entrevista de Virtu Financial

Expected value with coin flipping problem