Apple interview question

what is wrong with this program?