Apple interview question

Classic cantilever bean problem like usual