Domanda di colloquio di Paintzen

3 JavaScript algorithm questions of various difficulty.