Question d’entretien chez IBM

Solve an algorithmic problem in Java.