Google interview question

use semaphore to implement mutex