DriveNets interview question

please do implement a mutex