Apple interview question

What I wrote above qualifies