Question d’entretien chez Google

Truncate a string to given truncated digits