Apple interview question

Solve a problem they show you