Revolut interview question

Optimal strategy for a dice game