Apple Interview Question

noting too difficult