Question d’entretien chez Uber

Algorithm question of string and hash