Question d’entretien chez J.P. Morgan

Q 1. Find a given pattern in a string.