Apple interview question

join two api responses by id