Revolut Interview Question

Optimal strategy for a dice game