SyncWorks interview question

Assignment was given