Apple Interview Question

join two api responses by id