Question d’entretien chez Riskified

Read code and explain its problems, how to improve it