DriveNets Interview Question

please do implement a mutex