Domanda di colloquio di Laserfiche

Basic algorithm questions. Mine had to do with arrays.