Domanda di colloquio di Apple

Some basic algorithm and data structure questions