Jane Street interview question

Expected value of a sequential throw game