Apple interview question

System design question at the end