Electrifex interview question

(coding question) Object synchronization question