Question d’entretien chez Revolut

There was a dynamic programming question