Bloomberg Interview Question

1 hours live coding..you have two custom objects..if a record exist in object a,but not exist in object b insert the record in object b and .if a record exist in object b,but not exist in object a insert the record in object a