Cepton interview question

how does smart pointers, semaphores work