Apple Interview Question

Some basic algorithm and data structure questions