Question d’entretien chez Paintzen

3 JavaScript algorithm questions of various difficulty.