A die game with two rerolls
Asked at Jane Street, SIG
You roll a fair six-sided die and are paid its face value in dollars. Before being paid, you may reroll, and after that roll you may reroll one more time; you keep whatever the final roll shows.
What is the fair value of this game under optimal play?
Show a hint
Work backwards. Value the game with one reroll left first, then use that as the "continuation value" for the decision with two rerolls left.