Question d’entretien chez Citadel Securities

dynamic programming game, find the recursion.